/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 creature_bank_type.cpp

	$Header: /heroes4/creature_bank_type.cpp $

	$NoKeywords: $

 ************************************************************************/
#include "precompiled.h"
#include "creature_bank_type.h"

#include "elements_of.h"
#include "enum_map.h"

namespace
{
	t_char_ptr_pair k_keywords[] =
	{
		{ k_creature_bank_pirate_islands,	"pirate_islands" },
		{ k_creature_bank_dragon_city,		"dragon_city" },
		{ k_creature_bank_keep,				"keep" },
		{ k_creature_bank_griffin_nest,		"griffin_nest" },
		{ k_creature_bank_graveyard,		"graveyard" },
		{ k_creature_bank_pyramid,			"pyramid" },
		{ k_creature_bank_ivory_tower,		"ivory_tower" },
		{ k_creature_bank_dwarven_mines,	"dwarven_mines" },
		{ k_creature_bank_minotaurs_maze,	"minotaurs_maze" },
		{ k_creature_bank_temple_of_light,	"temple_of_light" },
		{ k_creature_bank_faerie_ring,		"faerie_ring" },
		{ k_creature_bank_bandit_camp,		"bandit_camp" },
		{ k_creature_bank_imp_cache,		"imp_cache" },
		{ k_creature_bank_magic_lamp,		"magic_lamp" },
		{ k_creature_bank_shipwreck,		"shipwreck" },
		{ k_creature_bank_ruins,			"ruins" },
		{ k_creature_bank_forest_glenn,		"forest_glenn" },
		{ k_creature_bank_lair,				"lair" },
		{ k_creature_bank_derelict_ship,	"derelict_ship" },
		{ k_creature_bank_crypt,			"crypt" },
		{ k_creature_bank_harpy_nest,		"harpy_nest" }
	};

	t_enum_map<t_creature_bank_type> k_bank_map( k_keywords, 
		                                         ELEMENTS_OF( k_keywords ), 
												 k_creature_bank_type_count );
}

std::string get_keyword( t_creature_bank_type type )
{
	return k_bank_map[type];
}

t_creature_bank_type get_creature_bank_type( std::string const& keyword )
{
	return k_bank_map[keyword];
}

